package top.hzy520.goods.dao;

import org.apache.ibatis.annotations.Mapper;
import top.hzy520.goods.entity.Product;

import java.util.List;

@Mapper
public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectCateGoryDetailById(Long id);

    List<Product> selectCateGoryAllGoodsById(Long id);
}